import java.io.*;

class ksjdgb
{
	static PrintWriter p=new PrintWriter(System.out,true);
	static BufferedReader a=new BufferedReader(new InputStreamReader(System.in));
	public static void main(String [] args) throws IOException
	{
		int i,x;
		
		p.print("enter the count : "); //   
		p.flush();
		x=Integer.parseInt(a.readLine());
		
		String  name[]=new  String[x]; //  
		int    sales[]=new     int[x]; //  
		int   salary[]=new     int[x]; //  
		int     comm[]=new     int[x];//  
		int    gross[]=new     int[x];//   
		
		for(i=0 ; i<name.length ; ++i)
			{
				p.print("ENTER The NAME "+(i+1)+" : ");//   
				p.flush();						//      
				name[i]=a.readLine();
				p.print("ENTER is sales "+name[i]+" : "); //   
				p.flush();
				sales[i]=Integer.parseInt(a.readLine());
				salary[i]=2500;					//   
				comm[i]  =(sales[i]*9)/100;	//  
				gross[i] =salary[i]+comm[i];	//  
			}
			
			p.println("\n\n Name\t\tsales\tsalary\tcomm\tgross");
			p.println("----------------------------------------------");
			
		for(i=0 ; i<salary.length ; ++i)
			{
				p.print(name[i]+"\t\t ");
				p.print(sales[i]+"\t ");
				p.print(salary[i]+"\t ");
				p.print(comm[i]+"\t ");
				p.print(gross[i]);
				p.println();		
			}
					
	}
}